package com.example.designpatterns.behavioral.command;

/**
 * 请求发送者，电视机遥控器
 *
 * @author scott
 */
public class RemoteControl {

    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton() {
        command.execute();
    }

}
